﻿using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace VisualStudioAchievements
{
    public partial class CompareView : PhoneApplicationPage
    {
        public CompareView()
        {
            InitializeComponent();
        }

        private void btnShare_Click(object sender, System.EventArgs e)
        {
            var shareTask = new ShareStatusTask();
            shareTask.Status = string.Format("@ch9 VS Achievements: {0} - {1} pts. vs. {2} - {3} pts. #vsawp",
                BindingPoint.Instance.ComparedNiners.FirstNiner.Alias, BindingPoint.Instance.ComparedNiners.FirstNiner.Points,
                BindingPoint.Instance.ComparedNiners.SecondNiner.Alias, BindingPoint.Instance.ComparedNiners.SecondNiner.Points);
            shareTask.Show();
        }
    }
}